package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/7/29 下午1:45
 */
public class MyVideoMessageResult extends ListDataEntity implements Parcelable{
    private List<MyVideoMessageEntity> list;

    public List<MyVideoMessageEntity> getList() { return list;}

    public void setList(List<MyVideoMessageEntity> list) { this.list = list;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeTypedList(this.list);
    }

    public MyVideoMessageResult() {}

    protected MyVideoMessageResult(Parcel in) {
        super(in);
        this.list = in.createTypedArrayList(MyVideoMessageEntity.CREATOR);
    }

    public static final Creator<MyVideoMessageResult> CREATOR = new Creator<MyVideoMessageResult>() {
        @Override
        public MyVideoMessageResult createFromParcel(Parcel source) {return new MyVideoMessageResult(source);}

        @Override
        public MyVideoMessageResult[] newArray(int size) {return new MyVideoMessageResult[size];}
    };

    public static class MyVideoMessageEntity implements Parcelable{
        /**
         * id : 5
         * video_id : 2194
         * video_type : 2
         * posttime : 1473566613
         * content : 我来说一招应试技巧，也是去年考过这个杯赛的家长和娃实战经验：
         这题如果解起来很复杂，但是容易蒙对。
         一见到这图形，一般人都会想到梯形一半模型
         就把两个三角形直接当梯形面积一半（实际上不等），2个三角形的和正好等于梯形
         这样，直接就得出答案了

         * answer_teacher_id : 19
         * answer_posttime : 1473577170
         * answer_content : 好的，谢谢您的建议，关于这点我们以后会多多注意的，我们一定会努力做得更好
         * status : 2
         * videoTitle : 第14题
         * course_id : 219
         */

        private String id;//视频留言记录id
        private String video_id;//视频id
        private String video_type;//视频类型(1-课程，2-杯赛)
        private String posttime;//留言时间
        private String content;//留言内容
        private String answer_teacher_id;//回答问题老师id
        private String answer_posttime;//回答问题时间
        private String answer_content;//回答问题内容
        private String status;//状态(1-未回复，2-已回复)
        private String videoTitle;//视频标题
        private String course_id;//视频所属课程id

        public String getId() { return id;}

        public void setId(String id) { this.id = id;}

        public String getVideo_id() { return video_id;}

        public void setVideo_id(String video_id) { this.video_id = video_id;}

        public String getVideo_type() { return video_type;}

        public void setVideo_type(String video_type) { this.video_type = video_type;}

        public String getPosttime() { return posttime;}

        public void setPosttime(String posttime) { this.posttime = posttime;}

        public String getContent() { return content;}

        public void setContent(String content) { this.content = content;}

        public String getAnswer_teacher_id() { return answer_teacher_id;}

        public void setAnswer_teacher_id(String answer_teacher_id) { this.answer_teacher_id = answer_teacher_id;}

        public String getAnswer_posttime() { return answer_posttime;}

        public void setAnswer_posttime(String answer_posttime) { this.answer_posttime = answer_posttime;}

        public String getAnswer_content() { return answer_content;}

        public void setAnswer_content(String answer_content) { this.answer_content = answer_content;}

        public String getStatus() { return status;}

        public void setStatus(String status) { this.status = status;}

        public String getVideoTitle() { return videoTitle;}

        public void setVideoTitle(String videoTitle) { this.videoTitle = videoTitle;}

        public String getCourse_id() { return course_id;}

        public void setCourse_id(String course_id) { this.course_id = course_id;}

        @Override
        public int describeContents() { return 0; }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.video_id);
            dest.writeString(this.video_type);
            dest.writeString(this.posttime);
            dest.writeString(this.content);
            dest.writeString(this.answer_teacher_id);
            dest.writeString(this.answer_posttime);
            dest.writeString(this.answer_content);
            dest.writeString(this.status);
            dest.writeString(this.videoTitle);
            dest.writeString(this.course_id);
        }

        public MyVideoMessageEntity() {}

        protected MyVideoMessageEntity(Parcel in) {
            this.id = in.readString();
            this.video_id = in.readString();
            this.video_type = in.readString();
            this.posttime = in.readString();
            this.content = in.readString();
            this.answer_teacher_id = in.readString();
            this.answer_posttime = in.readString();
            this.answer_content = in.readString();
            this.status = in.readString();
            this.videoTitle = in.readString();
            this.course_id = in.readString();
        }

        public static final Creator<MyVideoMessageEntity> CREATOR = new Creator<MyVideoMessageEntity>() {
            @Override
            public MyVideoMessageEntity createFromParcel(Parcel source) {return new MyVideoMessageEntity(source);}

            @Override
            public MyVideoMessageEntity[] newArray(int size) {return new MyVideoMessageEntity[size];}
        };
    }

}
